<?php /* Smarty version Smarty-3.1.13, created on 2013-06-20 15:42:01
         compiled from "/var/www/html/insite/templates/en/newsletters/edit.tpl" */ ?>
<?php /*%%SmartyHeaderCode:120059619351bdf12dbdd7f3-80397887%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e0abd80ef722795507f189d5f9f77821d3ef1df7' => 
    array (
      0 => '/var/www/html/insite/templates/en/newsletters/edit.tpl',
      1 => 1371714112,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '120059619351bdf12dbdd7f3-80397887',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_51bdf12dd50030_77598699',
  'variables' => 
  array (
    'msg' => 0,
    'link_return' => 0,
    'action' => 0,
    'subject' => 0,
    'published' => 0,
    'created' => 0,
    'html' => 0,
    'altbody' => 0,
    'body' => 0,
    'php5WebPath' => 0,
    'fromname' => 0,
    'fromemail' => 0,
    'groups' => 0,
    'arr_groups' => 0,
    'group' => 0,
    'grouptotal' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51bdf12dd50030_77598699')) {function content_51bdf12dd50030_77598699($_smarty_tpl) {?><?php if (!is_callable('smarty_function_ckeditor')) include '/var/www/html/includes/smarty.libs/plugins/function.ckeditor.php';
?>
<script>
function updateAcyEditor(v)
{
	if(v==1) {
		window.document.getElementById("textfieldset0").style.display = 'none';
		window.document.getElementById("textfieldset1").style.display = 'block';
	} else {
		window.document.getElementById("textfieldset1").style.display = 'none';
		window.document.getElementById("textfieldset0").style.display = 'block';
	}
}
</script>
<style>
form {
	margin: 0;
	padding: 0;
}
</style>

<!-- Content Area -->

<div id="content"> 
  
  <!-- Component Title -->
  <div class="pagetitle icon-48-module">
    <h2>Manager: EDIT NEWSLETTER</h2>
  </div>
  
  <!-- System Messages -->
  
  <div id="system-message-container"> <?php if ($_smarty_tpl->tpl_vars['msg']->value){?>
    <dl id="system-message">
      <dt class="message">Message</dt>
      <dd class="message message">
        <ul>
          <li><?php echo $_smarty_tpl->tpl_vars['msg']->value;?>
</li>
        </ul>
      </dd>
    </dl>
    <?php }?> </div>
  
  <!-- Sub Menu Navigation -->
  <div class="subheader">
    <h3 class="element-invisible">Sub Menu</h3>
    <div id="no-submenu"></div>
  </div>
  
  <!-- Toolbar Icon Buttons -->
  <div class="actionbar-box">
    <div class="module">
      <h3>Toolbar</h3>
      <div class="actionbar-list" id="actionbar">
        <ul>
          <li id="actionbar-apply"> <a href="#" onClick="javascript:frmAdmin.submit();" class="actionbar"> <span class="icon-32-apply"> </span> Save </a> </li>
          <li id="actionbar-cancel"> <a href="<?php echo $_smarty_tpl->tpl_vars['link_return']->value;?>
" class="actionbar"> <span class="icon-32-cancel"> </span> Close </a> </li>
        </ul>
        <div class="clr"></div>
      </div>
    </div>
    <div class="clr"></div>
  </div>
  
  <!-- Beginning of Actual Content -->
  <div id="element-box">
    <div class="t">
      <div class="t">
        <div class="t"></div>
      </div>
    </div>
    <div class="m">
      <div id="acy_content" >
        <div id="iframedoc"></div>
        <form name="frmAdmin" action="<?php echo $_smarty_tpl->tpl_vars['action']->value;?>
" method="post">
          <table width="100%">
            <tr>
              <td valign="top"><table class="adminform" width="100%">
                  <tr>
                    <td class="key" id="subjectkey"><label for="subject"> Subject </label></td>
                    <td id="subjectinput"><input type="text" name="subject" id="subject" class="inputbox" style="width:80%" value="<?php echo $_smarty_tpl->tpl_vars['subject']->value;?>
" /></td>
                    <td class="key" id="publishedkey"><label for="published"> Published </label></td>
                    <td id="publishedinput"><input type="radio" name="publish" id="published0" value="0" <?php if ($_smarty_tpl->tpl_vars['published']->value==0){?> checked="checked" <?php }?>  />
                      <label for="published0">No</label>
                      <input type="radio" name="publish" id="published1" value="1"  <?php if ($_smarty_tpl->tpl_vars['published']->value==1){?> checked="checked" <?php }?>  />
                      <label for="published1">Yes</label></td>
                  </tr>
                  <tr>
                    <td class="key" id="createdkey"> Created Date </td>
                    <td id="createdinput"> <?php echo $_smarty_tpl->tpl_vars['created']->value;?>
 </td>
                    <td class="key" id="sendhtmlkey"> Send HTML Version </td>
                    <td id="sendhtmlinput"><input type="radio" name="htmls" id="html0" value="0" <?php if ($_smarty_tpl->tpl_vars['html']->value==0){?> checked="checked" <?php }?> onclick="updateAcyEditor(0)" />
                      <label for="html0">No</label>
                      <input type="radio" name="htmls" id="html1" value="1" <?php if ($_smarty_tpl->tpl_vars['html']->value==1){?> checked="checked" <?php }?> onclick="updateAcyEditor(1)" />
                      <label for="html1">Yes</label></td>
                  </tr>
                </table>
                <fieldset class="adminform" width="100%" id="textfieldset0" <?php if ($_smarty_tpl->tpl_vars['html']->value==1){?> style="display:none" <?php }?>>
                  <legend>Text Version</legend>
                  <textarea style="width:98%" rows="20" name="altbody" id="altbody" ><?php echo $_smarty_tpl->tpl_vars['altbody']->value;?>
</textarea>
                </fieldset>
                <fieldset class="adminform" width="100%" id="textfieldset1" <?php if ($_smarty_tpl->tpl_vars['html']->value==0){?> style="display:none" <?php }?>>
                  <legend>HTML Version</legend>
                  <?php echo smarty_function_ckeditor(array('name'=>'body','id'=>'body','value'=>$_smarty_tpl->tpl_vars['body']->value,'height'=>400,'width'=>800,'toolbar'=>'Default'),$_smarty_tpl);?>

                  <div style="color:#666; font-style:italic;">Link to track: <?php echo $_smarty_tpl->tpl_vars['php5WebPath']->value;?>
/track.php?type=1&redirect=[path] </div>
                </fieldset> 
              </td>
              <td width="400" valign="top"><div id="newsletterparams">
                    <dt id="mail_sender"><span>Sender Information</span></dt>
                    <dd> <br style="font-size:1px"/>
                      <table width="100%" class="paramlist admintable" id="senderinformationfieldset">
                        <tr>
                          <td class="paramlist_key"><label for="fromname">From Name</label></td>
                          <td class="paramlist_value"><input class="inputbox" id="fromname" type="text" name="fromname" size="40" value="<?php echo $_smarty_tpl->tpl_vars['fromname']->value;?>
" /></td>
                        </tr>
                        <tr>
                          <td class="paramlist_key"><label for="fromemail">From Address</label></td>
                          <td class="paramlist_value"><input class="inputbox" id="fromemail" type="text" name="fromemail" size="40" value="<?php echo $_smarty_tpl->tpl_vars['fromemail']->value;?>
" /></td>
                        </tr>
                      </table>
                    </dd>
                </div>
                <?php if ($_smarty_tpl->tpl_vars['groups']->value){?>
                <table class="admintable" width="100%">
                  <tr>
                    <td colspan="2">
                    <fieldset class="adminform" width="100%" id="textfieldset">
                      <legend>List User Groups</legend>
                      <table width="100%">
                        <?php  $_smarty_tpl->tpl_vars['arr_groups'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['arr_groups']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['groups']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['arr_groups']->key => $_smarty_tpl->tpl_vars['arr_groups']->value){
$_smarty_tpl->tpl_vars['arr_groups']->_loop = true;
?>
                        <tr>
                          <?php  $_smarty_tpl->tpl_vars['group'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['group']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['arr_groups']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['group']->key => $_smarty_tpl->tpl_vars['group']->value){
$_smarty_tpl->tpl_vars['group']->_loop = true;
?>
                          <td><?php if ($_smarty_tpl->tpl_vars['group']->value['id']){?><input type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['group']->value['id'];?>
" name="chkGroup[]" id="chkGroup<?php echo $_smarty_tpl->tpl_vars['group']->value['idx'];?>
" <?php if ($_smarty_tpl->tpl_vars['group']->value['checked']){?>checked<?php }?> /> <?php echo $_smarty_tpl->tpl_vars['group']->value['name'];?>
<?php }?></td>
                          <?php } ?>	
                        </tr>
                        <?php } ?>
                      </table>
                    </fieldset></td>
                  </tr>
                  <input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['grouptotal']->value;?>
" name="grouptotal" />
                </table>
                <?php }?>
                </td>
            </tr>
          </table>
          <div class="clr"></div>
          <input type="hidden" id="tempid" name="tempid" value="0" />
          <input type="hidden" id="html" name="html" value="0" />
          <input type="hidden" name="type" value="news" />
        </form>
      </div>
      <!--  AcyMailing Component powered by http://www.acyba.com --> 
      
      <!-- version Starter : 3.7.0 -->
      <div class="clr"></div>
    </div>
    <div class="b">
      <div class="b">
        <div class="b"></div>
      </div>
    </div>
  </div>
  <!-- end of element-box -->
  
  <noscript>
  Warning! JavaScript must be enabled for proper operation of the Administrator backend.
  </noscript>
  <div class="clr"></div>
</div>
<!-- end of content --> 
<?php }} ?>